package wallFactory;

import wallFactory.builders.WallBox;
import wallFactory.builders.WallBuilder;

public class Factory {
	
	private WallBuilder wallBuilder;
 
	public Factory() {
		
		
	}
	
	public void setWallBuilder(WallBuilder eb) {
		wallBuilder = eb;
	}
 
	public WallBox GetWall() {
		return wallBuilder.getWall();
	}


	public void construct(int row, int col) {
		wallBuilder.createNewWallProduct();
		wallBuilder.buildModel();
		wallBuilder.buildTexture();
		wallBuilder.locate(row, col);
		
	}
	
}
